package com.igeek.javase.ch03.extendss;

/**
 * @author chenmin
 * 2023/7/12 16:27
 * @description TODO
 */
public class Person {

    //属性
    private String name;
    private int age;
    private char gender;

    public Person() {
    }

    public Person(String name, int age, char gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public void sleep(){
        System.out.println(name+"正在睡觉~");
    }

    public void eat(){
        System.out.println(name+"正在吃饭~");
    }
}
